package com.xiaoyu.tool.repository.order;

import com.xiaoyu.tool.entity.order.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2017/8/22.
 */
@Repository
public interface OrderRepository extends JpaRepository<Order,Long> {

    Page<Order> findAll(Pageable pageable);

    Order findByOrderNo(String orderNo);


}
